package lvbu.wang.lvbuoperator.constants;

/**
 * Created by DaiQing.Zha on 2016/6/8 0008.
 * Email:1642674371@qq.com
 * Description:
 */
public class ConstantsValue {

    public static final String BLUETOOTH_CONNECT_STATE = "bluetooth_connect_state"; //蓝牙连接状态
    public static final String MOTOR_TYPE_KEY = "motor_type"; //电机状态
    public static final String APP_VERSION_KEY = "APP_VERSION"; //app版本类型

    //===============================SharedPreference=============================

    //===============================广播相关=============================
    /**
     * 蓝牙状态改变的广播
     */
    public static final String ACTION_BLUETOOTH_CONNECT_STATE_CHANGED = "action_bluetooth_connect_state_changed";
    /**
     * 车子锁定成功的广播
     */
    public static final String ACTION_UNLOCK_SUCCESS = "action_unlock_success";// 发送广播：锁定成功
    /**
     * 发送恢复出厂设置后，当蓝牙返回信息时，该命令经过doBluetoothMessage方法处理处理之前现将其返回，交由特定处理
     */
    public static final String ACTION_BLUETOOTH_VALUE = "action_bluetooth_value";
    /**
     * 蓝牙信号
     */
    public static final String ACTION_BLE_SIGNAL_STRENGTH = "action_ble_signal_strength";
    //===============================广播相关=============================

    //===============================intent页面跳转相关=============================
    /**
     * 扫描二维码获取路径
     */
    public static final int INTENT_SCAN_EWM = 100;
    /**
     * 扫描二维码获取蓝牙地址
     */
    public static final int INTENT_SCAN_EWM1 = 101;
    //===============================intent页面跳转相关=============================


    public static String TOKEN = "token";
    public static String Shared_Preferences_Nickname = "Nickname";
    public static String Shared_Preferences_Pwd = "Password";
    public static String Shared_Preferences_ManagerId = "ManagerId";
    public static String AuthCode_key = "lvbu@365.888.999_To_Everyone_dsurorytfdallfdas[][]jfdjsfa@(**&";


    /**
     * 蓝牙连接状态---手机蓝牙没打开
     */
    public static final String ACTION_BLE_BLUETOOTH_ADAPTER_CANNOT_USE = "action_ble_BLUETOOTH_ADAPTER_CANNOT_USE";
    /**
     * 蓝牙连接状态---准备连接
     */
    public static final String ACTION_BLE_PREPARE_CONNECT = "action_ble_PREPARE_CONNECT";
    /**
     * 蓝牙连接状态---开始扫描
     */
    public static final String ACTION_BLE_START_SCAN = "action_ble_START_SCAN";
    /**
     * 蓝牙连接状态---扫描成功
     */
    public static final String ACTION_BLE_SCAN_SUCCESS = "action_ble_SCAN_SUCCESS";
    /**
     * 蓝牙连接状态---扫描失败
     */
    public static final String ACTION_BLE_SCAN_FAIL = "action_ble_SCAN_FAIL";
    /**
     * 蓝牙连接状态---没有获取到远程设备
     */
    public static final String ACTION_BLE_CAN_NOT_GET_RREMOTE_DEVICE = "action_ble_CAN_NOT_GET_RREMOTE_DEVICE";
    /**
     * 蓝牙连接状态---正在连接
     */
    public static final String ACTION_BLE_CONNECTING_DEVICE = "action_ble_CONNECTING_DEVICE";

    /**
     * 蓝牙连接状态---连接成功
     */
    public static final String ACTION_BLE_CONNECT_SUCCESS = "action_ble_CONNECT_SUCCESS";
    /**
     * 蓝牙连接状态---连接失败
     */
    public static final String ACTION_BLE_CONNECT_FAIL = "action_ble_CONNECT_FAIL";
    /**
     * 蓝牙地址
     */
    public static final String SHARE_BLUETOOTH_ADDRESS =  "share_bluetooth_address";
    /**
     * 产品id
     */
    public static final String LVBU_PRODUCT_ID = "lvbu_product_id";
    /**
     * 产品名称
     */
    public static final String LVBU_PRODUCT_NAME = "lvbu_product_name";

    public static final int MOTOR_TYPE_IOT_OPERATION = 100;        //电机类型---物联网版
    public static final int MOTOR_TYPE_BLE_OPERATION = 101; //电机类型---蓝牙版
    public static int MOTOR_TYPE = MOTOR_TYPE_IOT_OPERATION;    //默认电机类型 为 物联网版
    public static final int APP_VERSION_SC = 102;    //app版本---生产版
    public static final int APP_VERSION_CS = 103;   //app版本---测试版
    public static int APP_VERSION = APP_VERSION_SC; //默认电机类型为生产版


    public static final String LOCAL_NAME =  "LvBuMotor";    //local name
    public static final String DEFAULT_DEVICE_NAME =  "WePower";    //default device name
    public static final String OPERATION_TYPE = "operation_type";//操作类型---用于蓝牙页面区分蓝牙连接成功后是跳转到参数设置界面,还是跳转到免登陆界面
    public static final String OPERATION_TYPE_PARAM_SET = "operation_type_paramSet";//参数设置
    public static final String OPERATION_TYPE_NO_LOGIN = "operation_type_noLogin";//免登录
    public static final String OPERATION_TYPE_LOCAL_DEBUG = "operation_type_localDebug";//本地调试
}
